package com.jdl.iscm.page;

import com.jdl.iscm.common.CommonCmpt;
import com.jdl.iscm.entity.proterties.ReplenishXpathProperties;
import org.openqa.selenium.WebDriver;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Author: Ran
 * @Date: 2021/8/19
 **/
@Component
public class StrategyParamPage {

    @Autowired
    private CommonCmpt commonCmpt;

    /**
     * vlt
     *
     * @param webDriver
     * @param xpathProperties
     */
    public void vlt(WebDriver webDriver, ReplenishXpathProperties xpathProperties) {

        commonCmpt.click(webDriver, xpathProperties.getConfigParamVlt());
    }

    /**
     * nrt
     *
     * @param webDriver
     * @param xpathProperties
     */
    public void nrt(WebDriver webDriver, ReplenishXpathProperties xpathProperties) {

        commonCmpt.click(webDriver, xpathProperties.getConfigParamNrt());
    }

    /**
     * rss
     *
     * @param webDriver
     * @param xpathProperties
     */
    public void rss(WebDriver webDriver, ReplenishXpathProperties xpathProperties) {

        commonCmpt.click(webDriver, xpathProperties.getConfigParamRss());
    }

    /**
     * rsSimp
     *
     * @param webDriver
     * @param xpathProperties
     */
    public void rsSimp(WebDriver webDriver, ReplenishXpathProperties xpathProperties) {

        commonCmpt.click(webDriver, xpathProperties.getConfigParamRsSimp());
    }

    /**
     * rsStd
     *
     * @param webDriver
     * @param xpathProperties
     */
    public void rsStd(WebDriver webDriver, ReplenishXpathProperties xpathProperties) {

        commonCmpt.click(webDriver, xpathProperties.getConfigParamRsStd());
    }

    /**
     * rq
     *
     * @param webDriver
     * @param xpathProperties
     */
    public void rq(WebDriver webDriver, ReplenishXpathProperties xpathProperties) {

        commonCmpt.click(webDriver, xpathProperties.getConfigParamRq());
    }

    /**
     * ts
     *
     * @param webDriver
     * @param xpathProperties
     */
    public void ts(WebDriver webDriver, ReplenishXpathProperties xpathProperties) {

        commonCmpt.click(webDriver, xpathProperties.getConfigParamTs());
    }

    /**
     * rqLlama
     *
     * @param webDriver
     * @param xpathProperties
     */
    public void rqLlama(WebDriver webDriver, ReplenishXpathProperties xpathProperties) {

        commonCmpt.click(webDriver, xpathProperties.getConfigParamRqLlama());
    }

    /**
     * tsLlama
     *
     * @param webDriver
     * @param xpathProperties
     */
    public void tsLlama(WebDriver webDriver, ReplenishXpathProperties xpathProperties) {

        commonCmpt.click(webDriver, xpathProperties.getConfigParamTsLlama());
    }

    /**
     * tsLlama
     *
     * @param webDriver
     * @param xpathProperties
     */
    public void bsLlama(WebDriver webDriver, ReplenishXpathProperties xpathProperties) {

        commonCmpt.click(webDriver, xpathProperties.getConfigParamBsLlama());
    }

}
